import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/lib/locale/lang/zh-cn'

// 懒加载
import lazyPlugin from 'vue3-lazy'

createApp(App).use(store).use(router).use(ElementPlus, { locale }).use(lazyPlugin, {
    loading: require('./imgs/lazy.gif'), // 图片加载时默认图片
    error: require('./imgs/lazy.gif')// 图片加载失败时默认图片
}).mount('#app')
